package com.cash.loan.modular.cash.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 借款产品表
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-11
 */
@TableName("loan_product")
public class LoanProduct extends Model<LoanProduct> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品编号
     */
    private String productId;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 产品图标路径
     */
    private String productIconUrl;
    /**
     * 产品卖点
     */
    private String productSellPoint;
    /**
     * 最小借款额度
     */
    private BigDecimal minLoanAmount;
    /**
     * 最大借款额度
     */
    private BigDecimal maxLoanAmount;
    /**
     * 最短借款期限
     */
    private Long minLoanTerm;
    /**
     * 最长借款期限
     */
    private Long maxLoanTerm;
    /**
     * 借款日利率
     */
    private Float dayLoanRate;
    /**
     * 排序值 默认0 产品从大到小排序
     */
    private Long orderByNum;
    /**
     * 产品标识 0新的 1力荐 2热门
     */
    private Long productFlag;
    /**
     * 产品状态 0未审 1已审核 2停用
     */
    private Long manageFlag;
    /**
     * 下载状态 0不可下载 1可下载
     */
    private Integer downloadFlag;
    /**
     * 产品添加者id
     */
    private Long createId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductIconUrl() {
        return productIconUrl;
    }

    public void setProductIconUrl(String productIconUrl) {
        this.productIconUrl = productIconUrl;
    }

    public String getProductSellPoint() {
        return productSellPoint;
    }

    public void setProductSellPoint(String productSellPoint) {
        this.productSellPoint = productSellPoint;
    }

    public BigDecimal getMinLoanAmount() {
        return minLoanAmount;
    }

    public void setMinLoanAmount(BigDecimal minLoanAmount) {
        this.minLoanAmount = minLoanAmount;
    }

    public BigDecimal getMaxLoanAmount() {
        return maxLoanAmount;
    }

    public void setMaxLoanAmount(BigDecimal maxLoanAmount) {
        this.maxLoanAmount = maxLoanAmount;
    }

    public Long getMinLoanTerm() {
        return minLoanTerm;
    }

    public void setMinLoanTerm(Long minLoanTerm) {
        this.minLoanTerm = minLoanTerm;
    }

    public Long getMaxLoanTerm() {
        return maxLoanTerm;
    }

    public void setMaxLoanTerm(Long maxLoanTerm) {
        this.maxLoanTerm = maxLoanTerm;
    }

    public Float getDayLoanRate() {
        return dayLoanRate;
    }

    public void setDayLoanRate(Float dayLoanRate) {
        this.dayLoanRate = dayLoanRate;
    }

    public Long getOrderByNum() {
        return orderByNum;
    }

    public void setOrderByNum(Long orderByNum) {
        this.orderByNum = orderByNum;
    }

    public Long getProductFlag() {
        return productFlag;
    }

    public void setProductFlag(Long productFlag) {
        this.productFlag = productFlag;
    }

    public Long getManageFlag() {
        return manageFlag;
    }

    public void setManageFlag(Long manageFlag) {
        this.manageFlag = manageFlag;
    }

    public Integer getDownloadFlag() {
        return downloadFlag;
    }

    public void setDownloadFlag(Integer downloadFlag) {
        this.downloadFlag = downloadFlag;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LoanProduct{" +
                "id=" + id +
                ", productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", productIconUrl='" + productIconUrl + '\'' +
                ", productSellPoint='" + productSellPoint + '\'' +
                ", minLoanAmount=" + minLoanAmount +
                ", maxLoanAmount=" + maxLoanAmount +
                ", minLoanTerm=" + minLoanTerm +
                ", maxLoanTerm=" + maxLoanTerm +
                ", dayLoanRate=" + dayLoanRate +
                ", orderByNum=" + orderByNum +
                ", productFlag=" + productFlag +
                ", manageFlag=" + manageFlag +
                ", downloadFlag=" + downloadFlag +
                ", createId=" + createId +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
